#1Uva272 - TeX Quotes
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
bool ok=true;
while(getline(cin,s)){
for(int i=0;i<s.length();i++){
if(s[i]=='"'){
if(ok){
cout<<"``";
ok=false;
}else{
cout<<"''";
ok=true;
}
}else{
cout<<s[i];
}
}
cout<<endl;
}
}